package com.lyw.springCloud.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther liyawei
 * @Date 2022/5/19 20:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T t;

    public CommonResult(Integer code, String message) {
        this(code, message, null);
    }
}